package com.ruoyi.hospital.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.hospital.domain.Departments;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface DepartmentsService extends IService<Departments> {
    List<Departments> selectDepartmentsList(Departments departments);
    Departments selectDepartmentsById(Long deptId);
    boolean insertDepartments(Departments departments);
    boolean updateDepartments(Departments departments);
    boolean deleteDepartmentsByDeptIds( List<Long> deptIds);


    List<Departments> getAllDepartments(String hospitalName);
    
    /**
     * 通过医院名称查询科室列表（支持模糊查询）
     * @param hospitalName 医院名称
     * @return 科室列表
     */
    List<Departments> selectDepartmentsByHospitalName(String hospitalName);
}
